
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/3618a17f/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
   <link rel="stylesheet" type="text/css" href="/assets/906e49f6/jui/css/base/jquery-ui.css" />
   <script type="text/javascript" src="/assets/906e49f6/jquery.js"></script>
   <script type="text/javascript" src="/assets/906e49f6/jui/js/jquery-ui.min.js"></script>
   <script src="<?php echo Yii::app()->baseUrl; ?>/ckeditor/ckeditor.js"></script>
   <script type="text/javascript" src="/js/functions.js"></script>
        
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->
   
	<div id="mymenu">
		<?php 
        $items_admin = array(array('label' => 'Phân quyền','url' => Yii::app()->createUrl('admin/role/')),
                             array('label' => 'Quản lý menu', 'url' => Yii::app()->createUrl('admin/menu/')),
                             array('label' => 'Quản lý nhóm', 'url' => Yii::app()->createUrl('admin/membergroup/')),
                             array('label' => 'Quản lý tài khoản', 'url' => Yii::app()->createUrl('admin/member/')),
                             array('label' => 'Đổi mật khẩu', 'url' => Yii::app()->createUrl('admin/changepassword/')));
                $this->widget('application.extensions.mbmenu.MbMenu',array(
         			'items'=>array(
                        array('label'=>'Quản trị','url'=>'javascript:void(0)', 'items'=> $items_admin),
                        array('label'=>'Trang chủ', 'url'=>array('/admin')),
                        array('label'=>'Danh mục', 'url'=>array('/admin/category')),
                        array('label' => 'Bài viết', 'url' => array('/admin/articles')),
                        
                        
         				  array('label'=>'Login', 'url'=>array('/admin/default/login'), 'visible'=>Yii::app()->user->isGuest),
         				  array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/admin/default/logout'), 'visible'=>!Yii::app()->user->isGuest)
         			),
         		)); 
        ?>
	</div><!-- mainmenu -->
   
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
         'homeLink' => CHtml::link ('Trang chủ', Yii::app()->homeUrl . 'admin'),
		)); ?><!-- breadcrumbs -->
   
	<?php endif?>
	<?php 
        echo $content; 
        Yii::app()->clientScript->registerCoreScript('jquery.ui'); 
		Yii::app()->clientScript->registerCssFile(Yii::app()->clientScript->getCoreScriptUrl().'/jui/css/base/jquery-ui.css');

        ?>
        
	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by Icom
               
	</div><!-- footer -->
       
</div><!-- page -->

</body>

</html>